package com.design.decoration.gemstone;

import com.design.decoration.ArmEquip;
import com.design.decoration.ShoeEquip;

public class Test {

    public static void main(String[] args) {

        RedGemDecorator redGemDecorator = new RedGemDecorator(new RedGemDecorator(new BlueGemDecorator(new ShoeEquip())));
        System.out.println(redGemDecorator.description());
        System.out.println("攻击力： "+redGemDecorator.calculateAttack());

        RedGemDecorator redGemDecorator1 = new RedGemDecorator(new BlueGemDecorator(new YellowGemDecorator(new ArmEquip())));
        System.out.println("攻击力"+redGemDecorator1.calculateAttack());
        System.out.println(redGemDecorator1.description());


    }


}
